﻿
namespace NavFx
{
	/// <summary>
	/// Interface for components handling transition from one dynamically loaded page to another
	/// </summary>
	public interface ITransitor
	{
		/// <summary>
		/// Handles tansition from the current page to the next page to be displayed
		/// </summary>
		/// <param name="previousPage">The page being moved from</param>
		/// <param name="nextPage">The page to be displayed</param>
		void TransitionPage(IPage previousPage, IPage nextPage);

		/// <summary>
		/// Optional Target for TransitionPage to use
		/// </summary>
		object Target
		{
			get;
			set;
		}
	}
}
